package com.example.hotel_lxy.bean;

import androidx.viewpager.widget.PagerAdapter;

import java.util.List;

public class MyBean {

    /**
     * code : 0
     * msg : 成功
     * data : {"list":{"nickname":"14","avatar":"http://lxy.yskxfs.com/static/admin/img/none.png","num":"14"}}
     */

    private String code;
    private String msg;
    private DataBean data;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * list : {"nickname":"14","avatar":"http://lxy.yskxfs.com/static/admin/img/none.png","num":"14"}
         */

        private ListBean list;
        private List<CarouselBean> carousel;

        public List<CarouselBean> getCarousel() {
            return carousel;
        }

        public void setCarousel(List<CarouselBean> carousel) {
            this.carousel = carousel;
        }
        public ListBean getList() {
            return list;
        }

        public void setList(ListBean list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * nickname : 14
             * avatar : http://lxy.yskxfs.com/static/admin/img/none.png
             * num : 14
             */

            private String nickname;
            private String avatar;
            private String num;

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getNum() {
                return num;
            }

            public void setNum(String num) {
                this.num = num;
            }
        }
    }

    public static class CarouselBean {
        /**
         * carousel : [{"id":"14","image":"http://lxy.yskxfs.com/static/admin/img/none.png","url":"14"}]
         */
        private String id;
        private String image;
        private String url;

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }
}
